package exception;

/**
 * 非法的年龄异常
 * 1.类名要见名知意
 * 2.需要继承Exception(直接或间接)
 * 3.提供超类异常提供名的所有构造器
 * */
public class IllegaAgeException extends Exception {
    public IllegaAgeException() {
    }

    public IllegaAgeException(String message) {
        super(message);
    }

    public IllegaAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegaAgeException(Throwable cause) {
        super(cause);
    }

    public IllegaAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
